var flashArray = new Array();

for(var i=0; i<app.project.numItems; i++){
    flashArray.push(app.project.items[i+1]);
}

var folder = app.project.items.addFolder('Folder');

for(var i=0; i<flashArray.length; i++){
    var comp = app.project.items.addComp(flashArray[i].name.split('.')[0], 1920, 1080, 1.0, flashArray[i].duration, 25);
    comp.layers.add(flashArray[i]);
    comp.parentFolder = folder;
}